﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Cos.Core.Model.Media;
using Cos.Module.Media.Data;
using Microsoft.Practices.Unity;

namespace Cos.Module.Media
{
    public class MediaService : IMediaService
    {
        private readonly IMediaRepository mediaRepository;

        [InjectionConstructor]
        public MediaService(IMediaRepository mediaRepository)
        {
            this.mediaRepository = mediaRepository;
        }

        public Video GetVideo(int videoId, string cultureCode, bool isLiveMode)
        {
            return this.mediaRepository.GetVideo(videoId, cultureCode, isLiveMode);
        }
    }
}
